package com.zto.mybatis.pojo;

import com.zto.mybatis.enums.NameEnum;

public class User {
    private Integer id;

    private String email;

    //private String username;
    private NameEnum username;

    public NameEnum getUsername() {
        return username;
    }

    public void setUsername(NameEnum username) {
        this.username = username;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

//    public String getUsername() {
//        return username;
//    }
//
//    public void setUsername(String username) {
//        this.username = username == null ? null : username.trim();
//    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", email='" + email + '\'' +
                ", username='" + username + '\'' +
                '}';
    }
}